home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / doom / ldhe-src.0 / ldhe-src / dehacked / source / linux.h < prev    next >
C/C++ Source or Header  |  1995-04-13  |  2KB  |  55 lines

  1.  
  2. // Prototypes for the Linux compatibility routines
  3.  
  4. #include <unistd.h>
  5.  
  6. extern "C" {
  7.     int ioctl(int d, int request, ...);
  8.     int close(int fd);
  9.     int fchmod(int fd, mode_t mode);
  10.     uid_t getuid(void);
  11.     int setuid(uid_t uid);
  12. };
  13.     
  14. // Function prototypes for functions from linux.cpp
  15. extern int linux_init(void);
  16. extern void linux_end(void);
  17. extern void tty_raw(int raw);
  18. extern int pending_input(float do_wait);
  19. extern int getch(void);
  20. extern void wherexy(int *x, int *y);
  21. extern void gotoxy(int x, int y);
  22. extern void clrbox(int x, int y, int width, int height);
  23. extern void clreol(void);
  24. extern void cls(void);
  25. extern void textattr(int attr);
  26. extern void highlight_loc(int x, int y, int attr);
  27. extern void pokew(int x, int y, unsigned ch);
  28. extern void putch(int c);
  29. extern void cputs(char *s);
  30. extern void cprintf(char *s, ...);
  31. extern void gettext(int left, int top, int right, int bottom, int *buffer);
  32. extern void puttext(int left, int top, int right, int bottom, int *buffer);
  33. extern int stricmp(char *s1, char *s2);
  34. extern int strcmpi(char *s1, char *s2);
  35. extern char *strupr(char *s);
  36. extern int has_graphics(void);
  37. extern void textmode(int mode);
  38. extern void toMCGA(void);
  39. extern void set_colormap(struct color colormap[256]);
  40. extern void clsMCGA(void);
  41. extern void MCGAPutsXY (int x, int y, char *string, unsigned char color);
  42. extern void drawpoint(int x, int y, unsigned char color);
  43. extern void totext(void);
  44. extern void flush(void);
  45. extern void  _setcursortype(int type);
  46. extern int spawn(char *exe, char **args);
  47.  
  48. /* Different text modes */
  49. #define C80    0
  50. #define C4350    1
  51.  
  52. #define _PATH_DEVDSP    "/dev/dsp"    // The device file for the sound card.
  53.  
  54. extern int IBM_CHARSET;            // Can we display IBM characters?
  55.